﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxGridView;
using System.Data.Common;
using Project_Udrinkwater.Empoyee_Management;

namespace Project_Udrinkwater.Loan_Invoice
{
    public partial class Loan : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ASPxGridView2_BeforePerformDataSelect(object sender, EventArgs e)
        {
            Session["Loan_ID"] = (sender as ASPxGridView).GetMasterRowKeyValue();
           // Session["ID"] = (sender as ASPxGridView).GetMasterRowFieldValues("ID");
            
        }

      /*  protected void ASPxGridView2_RowDeleted(object sender, DevExpress.Web.Data.ASPxDataDeletedEventArgs e)
        {
            SqlDataLoanList.Update();
        }

        protected void ASPGridView2_RowDeleted(object sender, DevExpress.Web.Data.ASPxDataDeletedEventArgs e)
        {

        }*/

     
        protected void LinkButton1_Command(object sender, CommandEventArgs e)
        {
            Session["Loan_ID"] = e.CommandArgument.ToString();
            Response.Redirect("~/Empoyee_Management/LoanReport.aspx");
        }
    }
}